<template>
  <div class="page">
	<Editor :value="emailForm.msg" @updateValue="getMsg" />
  </div>
  <div class="page2">
	<Editor :value="emailForm.msg" @updateValue="getMsg2" />
  </div>
</template>

<script setup>
import Editor from '@/components/Editor/index.vue'
import { reactive, ref, onMounted } from 'vue'

const emailForm = reactive({
  test_msg: ''
})
const emailForm2 = reactive({
  test_msg: ''
})
const getMsg = (val) => {
  emailForm.msg = val
  console.log('form',emailForm.msg)
}
const getMsg2=(val)=>{
  emailForm2.msg=val
  console.log('form2',emailForm2.msg)
}
</script>